<#--Base libs-->
<#include "*/base_libs.ftl.html" />

<#--namespace libs-->
<#import "*/lib_member.ftl.html" as ln_member>
<#--namespace libs-->

<@lb_layout.main_frame id="member">
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span2">
			<@ln_member.left_links />
		</div>
		<div class="span10">
			<#if curr_user_info?exists>
			<legend>
			用户资料
			</legend>

			<form class="form-horizontal"  action="<@lb_util.url 'member/saveprofile' />" method="post">
				<div class="control-group">
					<label class="control-label" for="id_uid">ID</label>
					<div class="controls">
						<input type="text" id="id_uid" value="1000" disabled>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="id_email">电子邮箱</label>
					<div class="controls">
						<input type="email" id="id_email" value="test@tt.com" disabled>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="id_regdate">注册时间</label>
					<div class="controls">
						<input type="text" id="id_regdate" value="2012-02-17" disabled/>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="id_nickname">昵称</label>
					<div class="controls">
						<input name="nickname" type="text" id="id_nickname" placeholder="请输入您的昵称">
					</div>
				</div>
				<div class="control-group">
					<#assign currDate=.now />
					<#assign selYear="${currDate?string('yyyy')}" />
					<#assign selMonth="${currDate?string('MM')}" />
					<#assign selDay="${currDate?string('dd')}" />
					
					<label class="control-label">出生日期</label>
					<div class="controls">
						<select class="span2">
							<#list 1960..2012 as year>
							<#if year?c==selYear>
							<option value="${year?c}" selected>${year?c}</option>
							<#else>
							<option value="${year?c}">${year?c}</option>
							</#if>
							</#list>
						</select>年
						<select class="span1" style="width:60px;">
							<#list 1..12 as month>
							<#if month?c==selMonth>
							<option value="${month}" selected>${month?c}</option>
							<#else>
							<option value="${month}">${month?c}</option>
							</#if>
							</#list>
						</select>月
						<select class="span1" style="width:60px;">
							<#list 1..31 as day>
							<#if day?c==selDay>
							<option value="${day}" selected>${day?c}</option>
							<#else>
							<option value="${day}">${day?c}</option>
							</#if>
							</#list>
						</select>日
						<input type="hidden" name="birthdate" />
					</div>
				</div>
				<div class="form-actions">
					<input type="submit" class="btn btn-primary" value="保存" />
					<button class="btn">取消</button>
				</div>
			</form>
			<#else>
			您还没有登录，请先 <a href="<@lb_util.url 'member/login' />">登录</a>
			</#if>
		</div>
	</div>
</div>
</@lb_layout.main_frame>